#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Author: Hui
Description: { 游戏视图模块 - 简化版 }
"""
import Game_Info
import threading
from Game_Info import GameConfig
from Game_Main import TypingGame

# 简化版视图模块，不依赖PySimpleGUI

class GameStartWin(object):
    """简化版游戏开始窗口"""
    _voice_flag = True
    game_conf = GameConfig()    # 游戏信息配置类
    
    @classmethod
    def voice_flag(cls):
        """获取语音状态"""
        return cls._voice_flag

    def __init__(self, title):
        self.title = title

    def run(self):
        """启动游戏"""
        print("游戏启动中...")
        # 直接开始游戏，不显示GUI界面
        self.start_game()

    @staticmethod
    def start_game():
        """开始游戏"""
        TypingGame.game_over_flag = False
        TypingGame.game_quit_flag = False
        # 直接初始化并运行游戏
        game = TypingGame()
        # 调用游戏的start_game方法
        game.start_game()

# 简化的替代类
class GameExecuteWin(object):
    pass

class GameEndWin(object):
    pass

class GameSetWin(object):
    pass

class GameScoreWin(object):
    pass

class BaseWin(object):
    pass

def main():
    """主函数"""
    # 创建游戏开始窗口并运行
    game_start = GameStartWin("单词打字游戏")
    game_start.run()

if __name__ == '__main__':
    main()